iconhelper: Don't snapshot 0 sized icons
authorTimm Bäder <mail@baedert.org>
Fri, 9 Aug 2019 13:55:38 +0000 (15:55 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 9 Aug 2019 13:55:38 +0000 (15:55 +0200)
commit21123a12640b141ca6df822d76beb5a4bcac34c2
tree874e127f17eb7ed181e0be8717db12a44b15d5f8
parent87aeec2b63bdc1cd10305df9efc16e1ee3096e21
iconhelper: Don't snapshot 0 sized icons

This is happening for me when snapshotting small thumbnails in the file
chooser. The GtkScaler will scale the 1px height/width by 2, resulting
in nothing being drawn at all.
gtk/gtkiconhelper.c